package com.ssmp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ssmp.domain.Book;

public interface IBookService extends IService<Book>{
    //添加非通用的API
    Boolean delete(Integer id);
    Boolean insert(Book book);
    Boolean modify(Book book);
    Book get(Integer id);

    IPage<Book> getPage(int currentPage, int pageSize);

    IPage<Book> getPage(Integer pages, Integer pageSize, Book book);
}
